<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="//unpkg.com/layui@2.8.17/dist/css/layui.css" rel="stylesheet">
</head>
<body>
<div id="root"></div>
<script src="../../javascript/react.js"></script>
<script src="../../javascript/react-dom.js"></script>
<script src="../../javascript/babel.js"></script>
<script type="text/babel">
    /*使用React.createElement创建虚拟DOM*/
    const VDOM=React.createElement("div", null,"hello-react")
    console.log(VDOM)
    const root = ReactDOM.createRoot(document.querySelector("#root"))
    root.render(VDOM)
</script>
</body>
</html>
